package com.hnevc.foodserverapi.dao;



import com.hnevc.foodserverapi.pojo.Foods;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface FoodsMapper {
    //查询菜品列表
    @Select("select * from t_foods")
    List<Foods> queryAllFoods();

    //查询菜品详情
    @Select("select * from t_foods where id=#{id}")
    Foods queryFoodDetails(int id);
}
